﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CajaChica.Clases;
namespace CajaChica.Formularios
{
    public partial class frmPagosPendientes : DevComponents.DotNetBar.Office2007Form
    {
        public frmPagosPendientes()
        {
            InitializeComponent();
        }

        private void frmPagosPendientes_Load(object sender, EventArgs e)
        {
            clsPagos pagosPendientes = new clsPagos();
            
            dateTimeInput1.CustomFormat = "yyyy/MM/dd";
            dateTimeInput1.Text = DateTime.Now.ToString();
            dataGridViewX1.DataSource = 
                pagosPendientes.ListaPagosPendientes(DateTime.Parse(dateTimeInput1.Text));
        }

        private void dataGridViewX1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void buttonX1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
